using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace emp.DALFactory
{
    public class CellType
    {
        public static emp.IDAL.ICellType Create()
        {
            /// Look up the DAL implementation we should be using
            string path = System.Configuration.ConfigurationSettings.AppSettings["WebDAL"];
            string className = path + ".CellType";
            // Using the evidence given in the config file load the appropriate assembly and class
            return (emp.IDAL.ICellType)Assembly.Load(path).CreateInstance(className);

        }

    }
}
